<html>
<head>
	<title>Excersise 7</title>
	<link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
	<div id="js-console"></div>
	<script src="scripts/js-console.js"></script>
	<script>

	var numbers = new Array(51,2,23,4,25,6,711);	

	jsConsole.writeLine("unsorted array of numbers");
	for (var i = 0; i < numbers.length;i++)
	{
		jsConsole.write(numbers[i] + ",");
	}
	jsConsole.writeLine();
	numbers.sort(function(a,b){return b-a});
	jsConsole.writeLine("now sorted array");
	
	for (var i = 0; i < numbers.length;i++)
	{
		jsConsole.write(numbers[i] + ",");
	}
	jsConsole.writeLine();
	jsConsole.writeLine("the biggest number is: " + numbers[0]);
	</script>
</body>
</html>
